﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PennApps;

namespace MyMumsPC.DataModel
{
    public static class ProcessResourceIntensity
    {
        public static ResourceIntensity CalculateResourceIntensity(ProcessPerformanceInformation processPerfInfo)
        {
            if (int.Parse(processPerfInfo.CPUUsage) > 50)
            {
                return ResourceIntensity.High;
            }
            else if (int.Parse(processPerfInfo.CPUUsage) > 20)
            {
                return ResourceIntensity.Normal;
            }
            else
            {
                return ResourceIntensity.Low;
            }
        }
        public static int ResourceIntensityIndex(ProcessPerformanceInformation processPerfInfo)
        {
            return 100;
        }
    }
}
